package com.gxa.autoparts.admin.service.impl;


import com.gxa.autoparts.admin.mapper.GoodsTypeMapper;
import com.gxa.autoparts.admin.service.ShopManagementService;
import com.gxa.autoparts.core.pojo.GoodsType;
import com.gxa.autoparts.core.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("shopManagementService")
public class ShopManagementServiceImpl extends BaseServiceImpl<GoodsType> implements ShopManagementService {
    @Autowired
    GoodsTypeMapper goodsTypeMapper;
    @Override
    public List<GoodsType> selectTypeAll() {
        List<GoodsType> goodsTypes = goodsTypeMapper.selectTypeAll();
        return goodsTypes;
    }

    @Override
    public List<GoodsType> selectTwoGoodsType(Long pid) {
        List<GoodsType> goodsTypes = goodsTypeMapper.selectTwoGoodsType(pid);
        return goodsTypes;
    }
}
